<template>
	<view>
		<view class="header">
			<view class="box-nav">
				<view class="box-nav-txt">
					<text>最高15，000免费保障</text>
				</view>
				<view class="box-nav-txt1">
					<text>恶心肿瘤确诊可获赔 / 免费保障天天领取</text>
				</view>
				<button type="default" class="box-nav-btn">领500元保额</button>
				<view class="box-nav-small">
					<text>免费领</text>
				</view>
			</view>
		</view>
		<view class="wapper">
			<view class="box-1" v-for="item in box_nav" :key="item._id">
				<image :src="item.img" class="box-1-img" mode=""></image>
				<view><text class="box-1-tex">{{item.name}}</text></view>
			</view>

		</view>

		<view class="banner">
			<image src="../static/picture_baoxian_banner.png" class="banner-img" mode=""></image>
		</view>

		<personage></personage>


		<view class="Insurance_class">
			<text class="Insurance_class_head">保险课堂</text>
			<view class="Insurance_class_box" v-for="item in insurance_c" :key="item._id">
				<view class="Insurance_class_box_coment">
					<text class="Insurance_class_box_coment_txt_h">{{item.content}}</text>
					<view class="Insurance_class_box_coment_txt">
						<text class="Insurance_class_box_coment_txt_1">{{item.text_new}}</text>
						<text class="Insurance_class_box_coment_txt_2">{{item.libray}}浏览量</text>
					</view>
				</view>
				<view class="Insurance_class_box_img_i">
					<image :src="item.img" class="img" mode=""></image>
				</view>

			</view>
		</view>
	</view>

</template>

<script>
	import personage from '@/components/Insurance/personage.vue'
	export default {
		components: {
			personage
		},
		data() {
			return {
				box_nav: [{
					_id: 1,
					name: "车险",
					img: "../static/img/banner_bx_cx@2x.png"
				}, {
					_id: 2,
					name: "医保",
					img: "../static/img/banner_bx_cyb@2x.png"
				}, {
					_id: 3,
					name: "意外险",
					img: "../static/img/banner_bx_ywx@2x.png"
				}, {
					_id: 4,
					name: "重疾险",
					img: "../static/img/banner_bx_zjx@2x.png"
				}, ],
				insurance_c: [{_id:1,
					content: "2021 年生孩子国家补贴是真的嘛？ 生育保险还...",
					text_new: "土财经",
					libray: 33,
					img: "../static/img/picture_baoxian_baoxianketang01.png",
				},{_id:2,
					content: "2021 年生孩子国家补贴是真的嘛？ 生育保险还...",
					text_new: "土财经",
					libray: 33,
					img: "../static/img/picture_baoxian_baoxianketang02.png",
				},{_id:3,
					content: "2021 年生孩子国家补贴是真的嘛？ 生育保险还...",
					text_new: "土财经",
					libray: 33,
					img: "../static/img/picture_baoxian_baoxianketang03.png",
				},{_id:4,
					content: "2021 年生孩子国家补贴是真的嘛？ 生育保险还...",
					text_new: "土财经",
					libray: 33,
					img: "../static/img/picture_baoxian_baoxianketang04.png",
				}]


			}
		},
		methods: {

		}
	}
</script>

<style scoped>
	
</style>
<style scoped lang="scss">
	.header {
		background-image: linear-gradient(to bottom, #2A8FFE, #FFFFFF);
		height: 408rpx;
		box-sizing: border-box;
		padding-top: 28rpx;

		.box-nav {
			width: 670rpx;
			height: 314rpx;
			background-color: #ffffff;
			border-radius: 12rpx;
			margin: 0 auto;
			box-sizing: border-box;
			padding: 48rpx;
			text-align: center;

			.box-nav-txt {
				width: 520rpx;
				height: 74rpx;

				font-size: 52rpx;
				font-weight: normal;
				font-stretch: normal;
				line-height: 44rpx;
				letter-spacing: 0rpx;
				color: #323232;
			}

			.box-nav-txt1 {
				width: 508rpx;
				height: 40rpx;

				font-size: 28rpx;
				font-weight: normal;
				font-stretch: normal;
				line-height: 44rpx;
				letter-spacing: 0rpx;
				color: #adadad;
			}

			.box-nav-btn {
				width: 304rpx;
				height: 66rpx;
				background-image: linear-gradient(180deg,
						#007aff 0%,
						#72b5ff 100%);
				border-radius: 52rpx;
				font-size: 32rpx;
				font-weight: normal;
				font-stretch: normal;
				line-height: 66rpx;
				letter-spacing: 0rpx;
				color: #ffffff;
				margin-top: 40rpx;
			}

			.box-nav-small {
				width: 72rpx;
				height: 30rpx;
				background-color: #ff1f1f;
				border-radius: 20rpx 0rpx 20rpx 0rpx;
				border: solid 4rpx #ffffff;
				font-size: 14rpx;
				font-weight: normal;
				font-stretch: normal;
				line-height: 30rpx;
				letter-spacing: 0rpx;
				color: #ffffff;
				position: relative;
				    right: -379rpx;
    top: -79rpx;
			}
		}


	}

	.wapper {
		display: flex;
		justify-content: space-evenly;
		background-color: white;
		.box-1 {

			text-align: center;

			.box-1-img {
				width: 96rpx;
				height: 96rpx;

			}

			.box-1-tex {
				width: 72rpx;
				height: 20rpx;
				font-family: PingFang SC;
				font-size: 24rpx;
				font-weight: normal;
				font-stretch: normal;
				line-height: 34rpx;
				letter-spacing: 0rpx;
				color: #474747;
			}
		}
	}

	.banner {
		width: 670rpx;
		height: 258rpx;
		margin: 0 auto;
		margin-top: 48rpx;

		.banner-img {
			width: 670rpx;
			height: 258rpx;
		}
	}

	.Insurance_class {
		box-sizing: border-box;
		padding: 40rpx;
		padding-top: 0;
		border-bottom: 1px solid #E5E4E2;
		padding-bottom: 10rpx;

		.Insurance_class_head {

			width: 128rpx;
			height: 44rpx;
			font-size: 32rpx;
			font-weight: normal;
			font-stretch: normal;
			line-height: 44rpx;
			letter-spacing: 0rpx;
			color: #161616;
			margin-bottom: 24rpx;

		}

		.Insurance_class_box {
			display: flex;
			    margin-bottom: 40rpx;
				border-bottom: 1px solid #EAEAE8;
			.Insurance_class_box_coment {
				vertical-align: bottom;

				.Insurance_class_box_coment_txt_h {
					width: 440rpx;
					height: 88rpx;
					font-size: 32rpx;
					font-weight: normal;
					font-stretch: normal;
					line-height: 44rpx;
					letter-spacing: 0rpx;
					color: #474747;
					margin-top: 20rpx;
					text-overflow: -o-ellipsis-lastline;
					overflow: hidden;
					text-overflow: ellipsis;
					display: -webkit-box;
					-webkit-line-clamp: 2;
					-webkit-box-orient: vertical;
				}

				.Insurance_class_box_coment_txt {

					font-size: 20rpx;
					font-weight: normal;
					font-stretch: normal;
					line-height: 44rpx;
					letter-spacing: 0rpx;
					color: #323232;
					opacity: 0.61;

					.Insurance_class_box_coment_txt_1 {
						margin-right: 24rpx;
					}
				}
			}

			.Insurance_class_box_img_i {
				margin-left: 24rpx;

				.img {
					width: 206rpx;
					height: 138rpx;
				}
			}
		}
	}
</style>
